#include "vaccountdatabase.h"
#include <QApplication>

void test();


int main(int argc, char** argv)
{
	QApplication app(argc, argv);
	test();
	return app.exec();
}

void test()
{
	auto accountDatabase = VAccountDataBase::instance();

	//accountDatabase->deleteAccount("1234666");
	auto user0 = accountDatabase->registAccount("1234666", "password");
	qDebug() << user0.account();

	auto user1 = accountDatabase->verifyAccount("1234666", "password");
	qDebug() << user1.account();

	auto user2 = accountDatabase->registAccount("123", "password");
	qDebug() << user2.account();

	auto user3 = accountDatabase->verifyAccount("1234","password");
	qDebug() << user3.account();
	user1.addFriend("121561656155355153");
	user1.getFriends();
	user1.removeFriend("121561656155355153");
	auto friends=user1.getFriends();
	//accountDatabase->changePassword("1234666", "NEWPASSWORD");
}